/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Adkiraki;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
/**
 *
 * @author Ferrir
 */
public class FormaPagamento {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long formaPagamentoId;

    @Persistent
    private String descricao;

    @Persistent
    private Boolean ativo;

    @Persistent
    private Date dataCadastro;

    public FormaPagamento(
        String descricao, 
        Boolean ativo, 
        Date dataCadastro
    ) {
        this.descricao = descricao;
        this.ativo = ativo; 
        this.dataCadastro = dataCadastro;
    }

    /**
     * @return the formaEnvioId
     */
    public Long getFormaEnvioId() {
        return formaPagamentoId;
    }

    /**
     * @return the descricao
     */
    public String getDescricao() {
        return descricao;
    }

    /**
     * @return the ativo
     */
    public Boolean getAtivo() {
        return ativo;
    }

    /**
     * @return the dataCadastro
     */
    public Date getDataCadastro() {
        return dataCadastro;
    }

}
